<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="text/javascript" src="Scripts/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="Scripts/jquery.jqdock.min.js"></script>
    <script type="text/javascript" src="Scripts/ServletAddress.js"></script>
   <style type="text/css">
   
   </style>
    <script type="text/javascript">
	function HTMLEncode ( input )
	{
	var converter = document.createElement("DIV");
	converter.innerText = input;
	var output = converter.innerHTML;
	converter = null;
	return output;
	}
	$(document).ready(function(){
		$("#Mclose").mouseover(function(){
			 $("#Mclose").css("height",25);
			 $("#Mclose").css("width",25);
		});
		$("#Mclose").mouseout(function(){
			 $("#Mclose").css("height",20);
			 $("#Mclose").css("width",20);
		});
		$("#Mclose").click(function(){
			jQuery(window.parent.document).find("#placeMark").slideUp("slow");
			});
	$("#submit").click(function(){	
		var x=window.parent.frames["mainFrame"].x_mark;
		var y=window.parent.frames["mainFrame"].y_mark;
		var z=window.parent.frames["mainFrame"].z_mark;
		var text=HTMLEncode(document.getElementById("markTitle").value);	
		var content=HTMLEncode(document.getElementById("markContent").value);	
		var uid= window.parent.document.frames["login"].session;				
			window.parent.frames["mainFrame"].LocationMark(x,y,z,text);				
		
			//将Mark存入数据库
			$.post(ServletAddress+markAddress+"UID="+uid+"&Title="+text+"&Context="+content+"&lat="+y+"&lng="+x,function(result){ 					
					if(result=="Successs")	
					{						
						jQuery(window.parent.document).find("#placeMark").slideUp("slow");	
					}		
					else
					{
						alert("添加失败");
					}		
					});
				//回到漫游状态
				window.parent.frames["mainFrame"].pan_Method();
			});
			
		$("#submit").mouseover(function(){
			$("#submit").css("top",253);
			});
		$("#submit").mouseout(function(){
			$("#submit").css("top",255);
			});
			
		});
    </script>  
  
<title>Place mark</title>


 </head>
 <body>
 	<div id="" style="position:absolute; left:0px; top:0px; height: 300px; width: 251px;">  
    <div style="background:#999;width:240px;">
<table width="220" border="0" height="20">
  <tr>
    <td width="34" height="20">  <img src="images/Mark.png"style="width:25px;height:25px;"> </td>
    <td width="142" height="20"><p style=" position:relative; left:15px;font-family:'微软雅黑'; font-size:18px; font-weight:600; color:#03C">位置标绘</p></td>
    <td width="30" height="20"><img id="Mclose" style="height:20px;width:20px;left:6px" src="images/close.png"></td>
  </tr> 
</table> 
    </div>
 <p style="height:10px;font-weight:bold; position:relative; left:20px;">标题:</p>
 <input id="markTitle" style="height:20px;width:200px;left:20px; position:relative" type="text" value="" />
  <p style="height:10px;font-weight:bold; position:relative; left:20px;">内容:</p> 
 <textarea id="markContent"  type="textarea" style="width:200px; height:60px; position:relative;left:20px;"></textarea> 
  
 <img id="submit" src="images/button_submit_down.jpg" style="position:absolute; left:96px; ; top: 255px;">
 </div>   


</body>
   </html>




